#include <stdio.h>

struct jg {
	int number;
	char name[20];
	int Math;
	int Phy;
	int Pro;
};

int main() {
	struct jg a[5];
	int i;
	for (i = 0; i < 5; i++)
		scanf ("%d%s%d%d%d", &a[i].number, a[i].name, &a[i].Math, &a[i].Phy, &a[i].Pro);
	printf ("number\tname\tMath\tPhy\tPro\n");
	for (i = 0; i < 5; i++)
		printf ("%d\t%s\t%d\t%d\t%d\n", a[i].number, a[i].name, a[i].Math, a[i].Phy, a[i].Pro);
}
